package com.wjpeng.wms.mapper;

import com.wjpeng.wms.domain.Employee;
import com.wjpeng.wms.query.EmployeeQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface EmployeeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Employee record);

    Employee selectByPrimaryKey(Long id);

    List<Employee> selectAll();

    int updateByPrimaryKey(Employee record);

    Integer queryCount(EmployeeQueryObject qo);

    List<Employee> queryLimit(EmployeeQueryObject qo);

    void insertReation(@Param("employeeId") Long employeeId,@Param("roleId") Long roleId);

    void deleteReation(Long id);

    Employee selectByInfo(@Param("username") String username, @Param("password") String password);
}